<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>systemInfo</title>
    <!--移动设备优先，响应式-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css"
          integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <link href="../style/systemInfo.css" rel="stylesheet">

    <!-- 可选的Bootstrap主题文件（一般不使用） -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"></script>

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="../script/systemInfo.js" type="text/javascript"></script>
</head>
<body>
<div class="my-container" style="background-image: url(../image/header.jpg)">
    <div class="container">
        <div class="page-header">
            <h2 style="color: white">慢阻肺患者家庭护理数据采集与控制系统</h2>
        </div>
    </div>
</div>

<nav>
    <div class="navbar navbar-inverse">
        <div class="container">
            <div class="navbar-header">
                <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="../mainWindows.html" onclick="_hmt.push(['_trackEvent', 'navbar', 'click', 'navbar-首页'])">首页</a>
            </div>
            <div class="navbar-collapse collapse" role="navigation">
                <ul class="nav navbar-nav">
                    <li><a href="systemInfo.html" >健康分析</a></li>
                    <li><a href="devManagement.html">实时数据</a></li>
                    <li><a href="userManagement.html">个人信息</a></li>
                    <li class="hidden-sm"><a href="about.html">关于</a></li>
                </ul>
            </div>
        </div>
    </div>
</nav>

<section  style="height: 65vh; background-color: oldlace">
    <div id="content-top">
        <div id="content-left">
            <div id="cell">
                <div>
                    <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal" id="button1">历史数据</button>
                    <p id="gateway_page"></p>
                </div>
                <div>
                    <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#iModal" id="button2">异常数据</button>
                    <p id="sensor_page"></p>
                </div>
                <div class="form-group" style="text-align: center;">
                    <button type="button" class="btn btn-default btn-lg btn-primary" id="button3" onclick="downloadgate()">
                        <span class="glyphicon glyphicon-circle-arrow-down" aria-hidden="true">生成健康分析报告</span>
                    </button>
                </div>
                <div class="form-group" style="text-align: center;">
                    <button type="button" class="btn btn-default btn-lg btn-primary" id="button4" onclick="downloadsensor()">
                        <span class="glyphicon glyphicon-circle-arrow-down" aria-hidden="true">下载健康评分报告</span>
                    </button>
                </div>
            </div>
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h3 class="modal-title" id="myModalLabel" style="color: black">网关异常页数</h3>
                        <form id="gateway" onsubmit="return false"  action="##" method="get">
                            <div class="modal-body">
                                <div class="container">
                                    <div class="form-group form-input">
                                        <div style="width: 30%;margin-left: 4.5em;">
                                            <input type="text" class="form-control" id="gatepage" placeholder="请输入网关异常页数">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <div class="form-group" style="text-align: center;">
                                    <input type="button" class="btn btn-default btn-lg btn-primary" onclick="gate_excep()" value="确认">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal fade" id="iModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h3 class="modal-title" id="iModalLabel" style="color: black">传感器异常页数</h3>
                        <form id="sensor" onsubmit="return false"  action="##" method="get">
                            <div class="modal-body">
                                <div class="container">
                                    <div class="form-group form-input">
                                        <div style="width: 30%;margin-left: 4.5em;">
                                            <input type="text" class="form-control" id="sensorpage" placeholder="请输入传感器异常页数">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <div class="form-group" style="text-align: center;">
                                    <input type="button" class="btn btn-default btn-lg btn-primary" onclick="sensor_excep()" value="确认">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div id="content-right" style="overflow: auto">
            <table id="exception" border="2" cellpadding="10" align="center">
            </table>
        </div>
    </div>
</section>
<footer>
    <div class="foot">
        <h5 style="text-align: center">网络编程课程团队项目  @  Coding</h5>
    </div>
</footer>

<script>
    init()
</script>
</body>
</html>